//
//  HNSH_ShopSubmitModel.m
//  HNSH_SingleProject
//
//  Created by 李宇廷 on 2023/3/5.
//

#import "HNSH_ShopSubmitModel.h"

@implementation HNSH_ShopSubmitModel

//配置提交信息
- (NSDictionary *)configSubmitInfo {
    
    NSDictionary *dict = @{@"type":self.type,
                           @"name":self.name,
                           @"register_number":self.register_number,
                           @"license_url":self.license_url,
                           @"qualification_url":self.qualification_url,
                           @"authorization_url":self.authorization_url,
                           
                           @"region_code":self.region_code,
                           @"longitude":self.longitude,
                           @"latitude":self.latitude,
                           @"address":self.address,
                           @"category_id":self.category_id,
                           @"image_url":self.image_url,
                           
                           @"legal_name":self.legal_name,
                           @"phone":self.phone,
                           @"identity_card_no":self.identity_card_no,
                           @"identity_card_front_url":self.identity_card_front_url,
                           @"identity_card_back_url":self.identity_card_back_url,
                           
                           @"business_time":@""
    };
    
    //线上商家申请
    if ([self.type isEqualToString:@"10"]) {
        NSMutableDictionary *mutDict = [NSMutableDictionary dictionaryWithDictionary:dict];
        [mutDict setValue:self.bank_name forKey:@"bank_name"];
        [mutDict setValue:self.bank_branch_name forKey:@"bank_branch_name"];
        [mutDict setValue:self.bank_card_no forKey:@"bank_card_no"];
        
        return mutDict;
    }
    
    return dict;
}

@end
